home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
boostrs.arc
/
COPIES.ASM
< prev
next >
Wrap
Assembly Source File
|
1980-01-01
|
770b
|
31 lines
;**********************************************************************
; type
; AnyString = string[255];
; var
; C : char;
; N : integer;
;
; Function COPIES(C : char; N : Integer) : AnyString
; external 'B:COPIES';
;**********************************************************************
copies proc near
push bp
mov bp,sp
push ss
pop es
mov cx,[bp+4] ; N into CX
mov [bp+8],cl ; store length (N) into RESULT
mov ax,[bp+6] ; get character to copy into string
lea di,[bp+9]
cld
rep stosb
mov sp,bp
pop bp
pop bx
mov ax,cs:[bx]
cmp ax,0FFB1h
jnz cop1
add bx,5
cop1: push bx
ret 4
copies endp